﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

using AttributeRouting;
using AttributeRouting.Web.Mvc;
using PH.Logic.Standards;
namespace PH.Web.Management.Areas.Standard.Controllers
{
    [RouteArea("Standard")]
    [RoutePrefix("Evaluation")]
    [Authorize]
    public class EvaluationController : Controller
    {
        [Route("")]
        public ActionResult Index()
        {
            return View();
        }

        [Route("EHAW")]
        public ActionResult EHAW()
        {
            return View();
        }

        [Route("Primary/{subjectID:int}/{gradeCode:int}/{additional:bool}")]
        public ActionResult Primary(int subjectID,int gradeCode,bool additional)
        {
            var subject = SubjectLogic.GetSubject(subjectID);
            ViewBag.Subject = subject;
            ViewBag.GradeCode = gradeCode;
            ViewBag.Additional = additional;
            return PartialView();
        }

        [Route("EBMI/{gradeCode:int}")]
        public ActionResult EBMI(int gradeCode)
        {
            ViewBag.GradeCode = gradeCode;
            return PartialView();
        }

        [Route("Additional")]
        public ActionResult Additional()
        {
            return View();
        }
    }
}
